package 日程提醒工具;

import 日程提醒工具.view.ConsoleView;

import java.io.IOException;
import java.util.Scanner;

public class Application {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        ConsoleView view = new ConsoleView(scanner);

        view.printMenu();
        try {
            view.run();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

//        scanner.close();  // System.in一般不手动关闭，因为关闭后不可恢复，可以让JVM自然关闭时释放资源
    }
}
